updated code
added exception for .log
removed database details