made connection to db and loading info into txt
upd