updated models and migrations, fixed bugs on search