bada base size

Database

bada base size

i am trying create a script
the conditions r
1)find out the avilabile space in database
2)if<20 then it sud give no free sapace
3)and sud send mails to few persons
4)find the free sapace in each amp
5)if<20 then it sud give no free sapace
6)and sud send mails to few persons