Remove all db related functions.  they are now handled by the core.   Added ability to guess the external ip via http