[Core, Quotes]Fix DB to abstract the methods.