1.In such offences the custody is generally of not that long. Within 304 days bail is generally granted.
2.SInce the Magistrate is not granting him bail it is advisable to apply for his bail from sessions/high court u/s 439 IPC. He is likely to get bail once the higher court hears his bail plea.
3. Contact a good advocate who deals with criminal law.
Do not worry as once bail is moved in high court he will get bail soon. His physical conditions will also augment for the same.