Store achievements in the database