added support for db setup and init