Getting a dog is likely not going to solve your problems and you should fully investigate the myriad negative consequences of getting a dog, including robbing you of your freedom. Also, if you don't live in a house where the dog has free access to a backyard I strongly recommend against it.
Your are going to need to socialize it as a puppy. Going out on walks at 5 am does not sound like a good socialization opportunity. And what is the dog going to do while you're at school?