changed db id to aID for compatibility reasons. added bit of single functionality