db/smdb.py: change some formatting