Updating database creation scheme.
Attempting to debug a lot of strange behaviour around actions and AP.