Added some weird metaprogramming stuff for automatically grabbing database functions and pooping them into my actual objects