Added AdditivesModel method calls.

Refactored api.php to pass parameters to Model.
Added SQL queries logging.