 After Skonto lost 6–0 to Macedonian club, Rabotnički, in the 2005 Champions League First qualifying round, he resigned from the post and was replaced by English manager, Paul Ashworth.After he was sacked as Latvia manager earlier in the year, he worked as Sporting Director at Liepājas Metalurgs and he was appointed manager in November 2007 following the resignation of Benjaminas Zelkevičius at the end of the 2007 Virslīga season, in which the club had finished second behind FK Ventspils.Andrejevs signed a two-year contract with the club and was released in 2008.