Removed all sql related code