added database parameter, removed logger gem