Centralize all actions to work with the Makefile. Refactorize to work with sqlite3, and begin to work on postgresql.