slite database implemented
Code tidying and licence info
Automatically create database structure when database file does not exist.