Commonized getAllIds

Make a common function for all calls to get all the ids from a table.
Commonized GetAllIdsWhere
Removed unneeded import statements
Made new base for Database Table

Made a new base class for the database table that handles common SQL
commons. Add, Update, and Delete are not handled by the base class
because they are all highly specialized.