-Fixed database exception error

Program will now check for missing db file and if it is missing create
db file and its tables.