Added MySQL functions, createTables & connect.