Added serialization of database options.