change db schema and template