fix adding series to db