Re-added my SQL functions

The core.cs didnt get committed for some reason.