Fixed #11

Improved (drastically) performance of insert,update and delete
operations in sqlite database
Added default values in sqlite database
Clean up code