Some cleanup in db.c

Cleaned up do_areas and do_memory commands a bit.