Began converting module contents.
Converted sql_to_value function.