Stores data in sqlite db