added close statement after db creation.