added boilerplate db code