optimized sqlrequest