Create indexes for database.