entity move to database