Fixed db_type() got an unexpected keyword argument 'connection' error.