Refactored blog/archives and added SQLite and PostgreSQL support