Conditions now written to database