this vers includes database implementation for REGISTER by aveneesh