update DB per IP behavior, and revised install script to build apache config in place