update to use mongo instead