added model for basic get query
added functions to controler