improvement of insert/update/delete queries, improved correct use of exceptions.