Issue #2463321 by amateescu: Serializing the database connection is dangerous and error-prone, make it unserializable again