store job template in the database