Fix database models for proper id lengths