database setup for local and production env