refactored db_init in bdb driver so that the database environment is created with the correct owner