added connection argument to db_type

Giving TypeError except connection argument, when I testing on 1.5rc2

added connection arg with default as None