proper db template