DatabaseManager can now connect to a postgres database
continued implementing DatabaseManager