Using db with out persistent connection