Database interface, template