Fix for no db in change_user

Fix for no db in change_user