db: replace database info scripts with smdb.py