Moved script gen-lib-db from python3 to perl