Tag-based command-line database tool