CORE: Renamed a bunch of function and prepared statement names to make it easier to understand. Also similar to what TC did but a few are different.

Signed-off-by: SkyFire <admin@projectskyfire.org>