mantis#0000001: add models and controllers
add ignore files
mantis0000001:correct the sql