moving empty db operation into separate frames