Fix passing of database config