[Database] Added option to persistent connection