Added mysql core functions

Mysql core functions for performing queries