Fix registry database templates