Fixes database configuration