Adds mysql port to database logic and fixes typo