Optimized imports
Added more exception handling to data access
Added event handling to data access