Adds mysql port to database logic and fixes typo

Adding port to the script makes it possible to easily migrate from Dev Desktop, which typically uses non-standard ports.