Added :after to allowed keys
Better error message when no ':db' is given.