Added mysql querying