revised database files and added basic event logging