Simple RESTful interface for working with models with PDO in PHP