use Slim and Medoo to develop api