create db and table automatically