removed a bunch of deprecated functions from Database, added Database::loadResult and Database::loadObject