Solved database connection problem for mac users