Implemented sql client