resolve_hostname added db logging

Simple change to resolve_hostname post module, just logging to db.