#2 create database and  construt frame