Adding a bunch of database query shortcut functions