Added class to handle sql commands