connect to database correctly in production