backing up, but also some connection work
command line params and some db logic implemented