Small fixes on default config and database connection