Added sqlite library and added database code