Database initialization code

Created a class to deal with the SQLite database. This branch sets up the db class and also method dbinit which handles database initialization for the user.