All CRUD tests implemented. SQL injection has been made impossible.

Reworked the PermanentDatabase class.