added needed catches with SQLExeptions for rollback