added initial structure for query
added model lib