Fixed db commands

There was no method to handle a single appCtx parameter