update db schemas and template