Merging changes to the SQLite database schema from the wiki.
Increased robustness of 'AUTOINCREMENT' handling in the RDBMS adjustment script for PostgreSQL.