Using db layer to access db in streamer