updates to db_erlang