fixed minor error in database module