add --remote-log option to save log to remote db

I intentionally choose old `getopt` module, due to QNX with python 2.5, 
optparse is available from 2.3 to 2.7 and after that they recommend to use argparse