Added method to get all units from db