added Trail model
remove Pic model & db table
fixed minor bug for boolean method amendment