Fixed config issue, database access