throwing exception in case no db driver given