Remade the Infrastructure

Created a new infrastructure that will allow for an easier
implementation of SQL and a safer one.