add indexes on users and images