Added SQLite-based login framework
Resolved overeager primary key constraints.