Create database and tables using sqlite, query and insert data.