jsHint code cleanup
Cradle's view.map takes a function, not a string
Actually ensure the log db is created.
More specific test db name