Database management for the command line.