Object oriented database operations
Put multiquery back in, since it is used in the install script
Added type of database, in preparation for supporting other DBs