Fix the database setting parsing