Added port and host to database functions