fixup! My development configuration
fixup! Introduce checks to prevent runtime warning
lib/db.php: Facilitate other fetch modes
Migrate login to new DB scheme and passwords

 - Delete lots of obsolete methods.
 - Refactor large spaghetti methods into multiple smaller ones.