fixed problem with apply command using object database instead of staging database