change id to string and configure mongodb as database