implement load_db
implement query_image command
implement add_image, close_db, and ls_dbs