transition to new data structure

Transition to new data structure created and related changes performed. New functions added - remote access over sftp to remote database.