Replaces database module with database class to allow multiple connections simultaneously