6,angeluc2, Fixed database operations for new template classes