added DB creation functionality