pub fn init_db() -> Result<()> {
    if Path::exists(&pile_path()) {
        // TODO: verify schema or something
        Ok(())
    } else {
        create_db()
    }
}
/// initialize the database. create tables if necessary
initialize the database. create tables if necessary
initialize the database . create tables if necessary
pub fn init_db() -> Result<()> {
    if Path::exists(&pile_path()) {
        // TODO: verify schema or something
        Ok(())
    } else {
        create_db()
    }
}
pub fn init_db ( ) -> Result < ( ) > { if Path :: exists ( & pile_path ( ) ) { // TODO: verify schema or something Ok ( ( ) ) } else { create_db ( ) } }
initialize the database.
initialize the database .