Correct the database

Offset overflow not yet solved
Fix offset overflow