fix user_id with endpoints
auto generate indexes
Merge pull request #39 from MiCHiLU/auto-generate-indexes

Auto generate indexes