Fix database config dependency