DbHelper optimization