Added throws for IOException
Added jdbc code for create method