Fixed up SQLAdapter