why store in the database