Implemented value retreive from the database
Solving conflicts