Importing all the public SQL functions and implicit conversions.

Importing all the public SQL functions and implicit conversions.

Ready to merge.