Migrated to PostgreSQL database and added user edit function for admin