Fix database usage.