Switch logger to using database templates