Fix creation of database indexes

Tests fix

Fixes

Remove _executefunc

Fixed tests to work with Python3

Simplified index test

Fix creation of database indexes

Tests fix

Fixes

Remove _executefunc

Fixed tests to work with Python3

Fixes