Added classes to handle SQL