Add read-database support