Fix migrations to create index after table creation
Fix nil handling issues for the first time user