Added code to get all saving to the database