First version of estimate_database_size.py