MySQL Error: FUNCTION LEVENSHTEIN already exists
Check your import .sql script. 
There is possibly a create function statement between the create tables.
You have dropped the tables, but the functions already exists because you didn't know it was there.

BTW if you would clear the tables, you must not drop an recreate them, you could also issue a truncate table tbl_name;