- Changed db from MyIsam to InnoDB
- Changed queries with MATCH ... AGAINST TO LIKE
- Added class error to handle exceptions
- Added try catch for some actions regarding invoices