Recoded SQL system