Added restore database routine

only bulk yet