Use integer to instantiate Study object

Using the str coming from the handler was causing the ID to be a str, when
we want the Study.id to always be an integer