[feature/sqlite3] Fix sql_index_drop() and recreate indexes after actions

PHPBB3-9728