added a mysql api and a framework.