Added the database handler class

Implemented the table creation and database setup for the internal SQLite database.