create database, create table, execute insert and select data, finally print them.