more cleanup, fixed db_refresh, bound to public IP