Added database hooks

I can save and delete servers, but the views don't update and it doesn't
actually check the web for the IP yet.