added posibility to use postgreSQL database to store results