added move functions for Database