Fixed db-select command