fixed bug for quote display when db is empty