Setup database configuration and local environment.