added DB boilerplate