Add script for listing database directories