Removed superfluous curr_ prefix from all SQL