Sql for landing base module