design high performance mysql application