Specify port and encoding for database