added option for persistent DB connections