Changed the getAll() and associated functions so that they no longer require one database connection per object creations, but only one database connection for all the objects.