added DB boilerplate
fixing database stuff