Fix database adapter.