The Db class does connection into the database, queries and updates.