purpose written to database