setting up db tables
some bug fixing for inserting into db part 1
persisting data to db now