Added MySQL dependency.
Added database querying.