separate db driver from main package