Create Database function and add db methods to the prototype

I created a ```Database``` constructor function and added the database object methods to it. The other part of the code was kept in the ```connect``` function since I saw that the other constructor functions didn't have any other code aside from the ```_get``` assignment. I would like @mafintosh to give me his opinion here if he thinks that some or all of the code should be moved to the new constructor function.