create db-adapter