Fixed safety of database name in list_tasks.sh