configured pg for production, sqlite for development. added debugger