Add testcases for mx_databases_controller

* When project_id is invalid, render 404
* When id is invalid, render 404