add  sql  script
make  the  project  can be  tested
add  functions
add  test  case