Initial database service layer, some servlet changes