Refactor: Remove duplication from new Project class

- Remove one of the sql methods removing the duplicated code, now it use a conditional
to know which strategy to use
Refactor: Add initial flag for Project constructor