james | improved logging in the db