change adapter from sqlite3 to mysql
add api model
add create table
use thread
made controller