anchor.diff:  	false;
   not_empty(_Val) ->
   	true.
  -	
  +
   %val_to_binary({{Y,M, D}, {H, M, S}} = Datetime) when is_integer(Y), is_integer(M), is_integer(D), is_integer(H), is_integer(M), is_integer(S) ->
   %	StringDate = httpd_util:rfc1123_date(Datetime),
  -%	list_to_binary(StringDate);	
  +%	list_to_binary(StringDate);
   val_to_binary(Val) when is_atom(Val) ->
   	atom_to_binary(Val, latin1);
   val_to_binary(Val) when is_list(Val) ->
  
positive.code: init(Options) ->
  	AccessKey 	= proplists:get_value(db_username, Options, os:getenv("AWS_ACCESS_KEY_ID")),
  	SecretKey	= proplists:get_value(db_password, Options, os:getenv("AWS_SECRET_ACCESS_KEY")),
  	
  	%% startup dependencies.  some of these may have already been started, but that's ok.
  	inets:start(),
  	ssl:start(),
  	%%lager:start(),
  	application:start(ibrowse),
  	
  	
  	%% init initial credentials.  note that these will be refeshed automatically as needed
  	ddb_iam:credentials(AccessKey, SecretKey),
  	{'ok', Key, Secret, Token} = ddb_iam:token(129600),  %% 129600 is the lifetime duration for the token
  	ddb:credentials(Key, Secret, Token),
  
  	init_tables(),
      {ok, undefined}.
  
negative.code: 	%%Attrs = (boss_record_lib:dummy_record(Model)):attribute_names(),
  	ddb:create_table(Model, ddb:key_type(<<"id">>, 'string'), 10, 10),
  	init_meta_entry(Model).
  
  init_meta_entry(Model) when is_binary(Model)->
  	ddb:put(Model, [{<<"id">>, <<"metadata">>, 'string'},
  					{<<"counter">>, <<"0">>, 'number'}]).
  