making changes to DB and added methods to add trails