db boilerplate