added posibility to add data todatabase