save quotes to database