Better SQL adapter/model