best idea for vlan classification

I have a Server Room with about 40 servers. some servers are DB. Some of them is for web .
some of them need internet and some no.
what is the best idea for vlan classification them?
putting on DB sever and WEB sever in one Vlan is Dangerous؟؟
what is the best policy for vlan classification them?
thanks.