Added sql interface for doctrine, need to abstract this functionality to make it optional