Adding CairoDB and loging for queries on db in dev mode