cast string port to integer for database connect