Added SQL stuffs