Added all functional methods
fixed the error with SELECT statment