SQL model added and tested