Civil War battlefield database logic, uses postgres and ruby