fix issues for db templates