database functionality added

Adding to source and destination lists is done.