Fix database dependency.