Storing into DB. Proper format