Fix database initialization for multiple primary keys

Define multiple primary keys in DB.{History, OutputHistory} in separate constraints.

See also https://github.com/mattpap/IScala/issues/7#issuecomment-55962218. Database initialization failed silently with `[SQLITE_ERROR] SQL error or missing database (table "history" has more than one primary key))`.