Store data to database
Prepare for preventing csrf attack