addToDb for flightTemplate