Better DB interaction

Added a database class and added some example functions in the users
class.
Merge pull request #1 from Roemerb/master

Better DB interaction