sql + prototype models