improved get query and added int/double to parameters.(id query added)