Fixed version mismatch between required database version and sql template version.