Updated schema limits as I miscalculated them before (they were too high) and renamed indexes for SQLite from ages ago.