Addes login_port feature, similiar to how mysql_db.py works