Adds ability to specify additional sql condition