add Subject class & use mysqli