Fixed misalligned database indexes