Added C function to list all database table and delete by index.