Fix bug where the program tries to add an already-existing constraint

The ALTER TABLE command should not be executed when the table alread exists.
Thus, the constraint is added only when the table does not exist (of course
after creating the table).
Implement getAllRecords method

This method retrieves all the records in the RECORDS table, as the name
suggests.