added logging refs #2
added database module