Set the limit against the right db