made database module work