Configurable host and port

Modified to parameterize the hostname and port for PostgreSQL, SQLite, and MongoDB.