Implemented attribute repository
Fixed database migrations