Added sleep on main event loop. Added profiling support
Added mysql