sync db and files templates