move thread-specific options to DB table