Basic template for an api server using slim and mongo as a database